home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / roleta.swf / scripts / frame_365 / DoAction.as
Text File  |  2006-01-17  |  428b  |  23 lines

  1. vZahl = random(19);
  2. vStop = random(4);
  3. if(vStop == 1)
  4. {
  5.    sound3.stop();
  6.    sound3 = new Sound(this);
  7.    SoundID = "rad002";
  8.    sound3.attachSound(SoundID);
  9.    sound3.setVolume(100);
  10.    sound3.start(0,50);
  11.    gotoAndPlay(367);
  12. }
  13. else
  14. {
  15.    setProperty("/rad", _rotation, getProperty(rad, _rotation) + vRotadreh);
  16.    vRota += vRotadreh;
  17.    if(vRota >= 360)
  18.    {
  19.       vRota = 0;
  20.    }
  21.    gotoAndPlay(364);
  22. }
  23.